
package common;

public class HiredRoomAttributeTag extends ItemAttributeTag {

  protected String createText() {
    HiredRoomDetail room = (HiredRoomDetail) item;

    if ((attribute == null) ||
        (attribute.equalsIgnoreCase("SectionName"))) {
      return (room.getSectionName());
    } else if (attribute.equalsIgnoreCase("section")) {
      return (room.getSection());
    } else if (attribute.equalsIgnoreCase("building")) {
      return (room.getBuilding());  
    } else if (attribute.equalsIgnoreCase("room")) {
      return (room.getRoom());
    } else if (attribute.equalsIgnoreCase("roomtype")) {
      return (room.getRoomType());    
    } else if (attribute.equalsIgnoreCase("rid")) {
      return (String.valueOf(room.getRid())); 
    } else if (attribute.equalsIgnoreCase("hid")) {
      return (String.valueOf(room.getHid()));   
    } else if (attribute.equalsIgnoreCase("jzarea")) {
      return (String.valueOf(room.getJzArea()));
    } else if (attribute.equalsIgnoreCase("customers")) {
      return (room.getCustomers()); 
    } else return(null);
  }
}
